When there is too much code in your code, it is especially inconvenient to read the code, and you need to use a newline character "\". Be aware of two points when using line breaks:
The 1.c compiler is based on ";" To determine if it is a statement,
Extra_cflags + =-D with Config_ =y1.If you define a macro config_debugDefined in. C as: #define Config_debugDefined in Makefile as: config_debug=yIf we want to enter a macro definition for a. c file in makefile, use Extra_cflags + =
1 OverviewUsed preprocessing commands starting. For example, include the command # include and macro definition command # define. In the source program, these commands are placed outside the function, and are generally placed before the source file.
I. Product R & D is the main battlefield for modern enterprise competition
The innovation of a new business model and solution can subvert the operating rules of the existing industry and bring a lower cost and more diverse function experience to
Some scripts stored in the init. d directory are generally startup scripts for some services set in Linux.The system has installed a lot of services, and there are a lot of corresponding scripts.Run these scripts to start, stop, and restart these
Extra_cflags + =-D with Config_ =y
1.
If you define a macro Config_debug
Defined in. C as: #define Config_debug
Defined in Makefile as: config_debug=y
If we want to enter a macro definition for a. c file in makefile, use Extra_cflags + =
One.#define是C语言中提供的宏定义命令, the main purpose is to provide programmers with certain convenience in programming, and to a certain extent, improve the efficiency of the program, but students often do not understand the nature of the command in learning,
There are many places in the C language where macro definitions are used, such as in header files to prevent header files from being repeatedly included:
#ifndef ctest_header_h
#define CTEST_HEADER_H
/header file content
#endif
Many macro
Macro definition in C # define usage,
# Define is a macro definition Command provided in C language. Its main purpose is to provide programmers with some convenience in programming and improve the program running efficiency to a certain extent,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.